package com.woniu.liuzhougov.authorityControl.dao;

import com.woniu.liuzhougov.authorityControl.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insertRole(Role role);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> listRoles(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    int countNumberByRoleName(Role role);

    List<Role> listRoles();

}